<div id="header">
	<div class="header_content">
		<div class="header_logo"><a href="index.php" title="房客网北京二手房">
			<img  width=120 height=55  src="images/fangkewang_logo110x54.gif" class="logo" id="logo" alt="地图找房">
		</a></div>


		<div class="header_city">
			<div class="slogan">租房不花钱，买房少花钱，房子也能团</div>
		</div>


		<div class="middle_content">
		<div class="header_ad">
			<?php //顶部广告位
				require_once("./includes/configure.php");
				require_once("./includes/database.php");
				$db = Database::Connect();
				echo $db->getGuanggao(1);
				$db->close();
			?>
		</div>
		</div>

		<div class="login_nav">
			<!--未登录  start-->
			<ul class="toplogin_cont no_login" id="ajax_nologin_apf_id_6">

				<li class="ios rp20"><a
					href="#"	class="login" rel="nofollow">手机房客网</a></li>
				<li class="weituo">
					<a href="geren.php?main=chushou_post"	rel="nofollow">我要卖房</a><code>|</code></li>
				<li class="chuzu">
					<a rel="nofollow" href="geren.php?main=chuzu_post">我要出租</a><code>|</code></li>

				<?php
					session_start();
					if($_SESSION['user_id']){
				?>
					<li>
						<a href="wenda/?user/logout.html/myForward/1/" rel="nofollow" style="color:#333;">退出</a><code>|</code></li>
					<li>
						<a href="geren.php"	rel="nofollow" style="text-decoration: underline;">您好，<?php echo $_SESSION['user_name'];?></a><code>|</code></li>
				<?php
					}else{
				?>

				<li class="register_boxer">
					<a href="zhuce.php"	class="register" rel="nofollow">注册</a><code>|</code></li>
				<li>
					<a href="login.php"
					class="login" rel="nofollow">您好，请登录</a><code>|</code></li>
				<?php
					}
				?>
			</ul>
			<!--未登录  end-->
		</div>


	</div>


	<div class="tabbar_content">
		<div class="fangkewang_tabbar">
			<ul>
				<li class="home">
					<a href="index.php" title="首 页" <?php if(!((strpos($_SERVER['PHP_SELF'],"index.php"))===false)){echo 'class="selected" ';}?> rel="nofollow"><span>首 页</span></a></li>
				<li class="zufang">
					<a href="zufang.php" title="租 房" <?php if(!((strpos($_SERVER['PHP_SELF'],"zufang.php"))===false)){echo 'class="selected" ';}?>><span>租 房</span></a></li>
				<li class="ershoufang">
					<a href="ershoufang.php" title="二手房" <?php if(!((strpos($_SERVER['PHP_SELF'],"ershoufang.php"))===false)){echo 'class="selected" ';}?>><span>二手房</span></a>
				</li>
				<li class="zhaofang">
				<a href="zhaofang.php" title="找 房" <?php if(!((strpos($_SERVER['PHP_SELF'],"zhaofang.php"))===false)){echo 'class="selected" ';}?>><span>找 房</span></a></li>
				<li class="xiaoqu">
					<a href="xiaoqu.php" title="小 区" <?php if(!((strpos($_SERVER['PHP_SELF'],"xiaoqu.php"))===false)){echo 'class="selected" ';}?>><span>小 区</span></a></li>
				<li class="wenda">
					<a href="wenda/" title="问 答" <?php if(!((strpos($_SERVER['PHP_SELF'],"wenda.php"))===false)){echo 'class="selected" ';}?>><span>问 答</span></a></li>
					<li class="fangketuan">
					<a href="fangketuan.php" title="房 客 团" <?php if(!((strpos($_SERVER['PHP_SELF'],"fangketuan.php"))===false)){echo 'class="selected" ';}?>><span>房 客 团</span></a></li>
			</ul>
		</div>
		<?php //顶部友情链接?>
		<ul class="right_tabbar" style="display:none;">
			<li class="left_bg"></li>
			<li class="right_tabbar_li1"><a	href="http://www.ztzww.com" class="aifang"	target="_blank">战天中文网</a></li>
			<li class="right_tabbar_li2"><a href="#" class="haozu"	target="_blank">友链2</a></li>
			<li class="right_tabbar_li3"><a href="#" class="jinpu" 	target="_blank">友链3</a></li>
			<li class="right_bg"></li>
		</ul>

		<?php //控制样式的一个span?>
		<span class="fangkewang_tabbar_side"></span>
	</div>

	<?php //控制样式的一个div?>
	<div class="border_bg"></div>

</div>
